Product Area: Server Technical Area: Java - Back-end Classes Platform: Win NT
SPR# CKUA4RL48S - A memory leak while using the Java class library, NCSOW.jar with Websphere 3.5, has been identified. A workaround to this problem was implemented in R5.0.7 through a new NotesFactory.createSession() method. The new createSession() method has this signature:
lotus.domino.NotesFactory.createSession( String host, org.omg.CORBA.ORB orb, String user, String password )
Java programs that need to create many CORBA-remoted Sessions may use this form of createSession() to workaround this problem. These programs should create the ORB object once and keep re-using it for every session created. For example:
org.omg.CORBA.ORB orbObj = org.omg.CORBA.ORB.init((String) null, (java.util.Properties) null);
Session session = NotesFactory.createSession("servername.company.com", orbObj, "user name", "password");
In R5.0.10, a new change was made to allow an explicit ORB api call that can be invoked as (com.ibm.CORBA.iiop.ORB) orb.shutdown(false). This change will take care of cleaning up the Listenerthreads created by each particular orb instance.
Last Modified on 03/06/2002